import axios from '@/utils/request';

export function getDepartmentList(params) {
    return axios.post({
        url: '/department/list',
        data: params
    }).then((res) => {
        return res
    })
}

export function editDepartment(params) {
    return axios.post({
        url: '/department/edit',
        data: params
    }).then((res) => {
        return res
    })
}

export function deleteDepartment(params) {
    return axios.post({
        url: '/department/delete',
        data: params
    }).then((res) => {
        return res
    })
}

export function loadDepartment(params) {
    return axios.post({
        url: '/department/load',
        data: params
    }).then((res) => {
        return res
    })
}

